//
//  Student.h
//  OCDemo
//
//  Created by zhumuzhi on 2021/6/22.
//  Block实现链式编程示例
//

/**
 用法示例
 Student *stu = [[Student alloc] init];
 stu.per_name(@"jack").per_age(18).per_tall(173).per_size(CGSizeMake(100, 200)).per_run();
 NSLog(@"我是一名学生，我的名字是%@，身高%ld,年龄%ld,尺寸%@",stu.name,stu.tall,stu.age,NSStringFromCGSize(stu.size));
 */


#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface Student : NSObject

@property (nonatomic, copy)   NSString  *name;
@property (nonatomic, assign) NSInteger tall;
@property (nonatomic, assign) NSInteger age;
@property (nonatomic, assign) CGSize    size;

- (Student * (^)(NSString *))per_name;
- (Student * (^)(int))per_tall;
- (Student * (^)(int))per_age;
- (Student * (^)(CGSize))per_size;
- (Student * (^)(void))per_run;

@end

NS_ASSUME_NONNULL_END
